package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收藏对象 favorites
 * 
 * @author ruoyi
 * @date 2025-06-20
 */
public class Favorites extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏id */
    @Excel(name = "收藏id")
    private Long fId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long sId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date fTime;

    public void setfId(Long fId) 
    {
        this.fId = fId;
    }

    public Long getfId() 
    {
        return fId;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setsId(Long sId) 
    {
        this.sId = sId;
    }

    public Long getsId() 
    {
        return sId;
    }

    public void setfTime(Date fTime) 
    {
        this.fTime = fTime;
    }

    public Date getfTime() 
    {
        return fTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fId", getfId())
            .append("id", getId())
            .append("sId", getsId())
            .append("fTime", getfTime())
            .toString();
    }
}
